package org.bronycorps.mlptss.domain.tweenable;

import org.bronycorps.mlptss.domain.actor.HighlightActor;

import aurelienribon.tweenengine.TweenAccessor;

public class HighlightActorAccessor implements TweenAccessor<HighlightActor> {

	public static final int ALPHA = 1;

	@Override
	public int getValues(HighlightActor target, int tweenType,
			float[] returnValues) {
		switch (tweenType) {
		case ALPHA:
			returnValues[0] = target.getAlpha();
			return 1;
		default:
			assert false;
			return -1;
		}
	}

	@Override
	public void setValues(HighlightActor target, int tweenType,
			float[] newValues) {
		switch (tweenType) {
		case ALPHA:
			target.setAlpha(newValues[0]);
			break;
		default:
			assert false;
			break;
		}
	}

}
